package com.gitee.xhs.iterateStream;

import com.gitee.xhs.dao.IterateTransaction;
import org.apache.flink.api.common.functions.FilterFunction;

/**
 * @author BigHead
 * @date 2022/7/19 17:00
 * @description OperatorIterateEndLoopFilter
 */
public class OperatorIterateEndLoopFilter implements FilterFunction<IterateTransaction> {
    @Override
    public boolean filter(IterateTransaction value) throws Exception {
        return (double) value.getTransaction().getAccountId() == value.getTransaction().getAmount();
    }
}
